<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../back-common.jsp"%>
<%@ include file="/WEB-INF/pages/common/jquery2.1.4.jsp"%>
<%@ include file="/WEB-INF/pages/common/taglib.jsp"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<link href="<ls:templateResource item='/resources/plugins/select2-4.0/select2.css'/>" rel="stylesheet" />
<script src="<ls:templateResource item='/resources/plugins/select2-4.0/select2.full.min.js'/>" type="text/javascript"></script>
<script src="<ls:templateResource item='/resources/plugins/select2-4.0/i18n/zh-CN.js'/>" type="text/javascript"></script>
<script src="<ls:templateResource item='/resources/plugins/select2-4.0/makeSelect2.js'/>" type="text/javascript"></script>
<table class="${tableclass}" style="width: 100%">
	<tr>
		<th><strong class="am-text-primary am-text-lg"> 项目管理</strong> / 我的地盘</th>
	</tr>
</table>
<form action="<ls:url address='/admin/myland/query'/>" id="form1" method="post">
	<table class="${tableclass}" style="width: 100%">
		<tbody>
			<tr>
				<td>
					<div align="left" style="padding: 3px">
						<input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> &nbsp; 
						<select name="userName" id="userName" style="width: 120px">
							<c:if test="${not empty eventQueryDto.userName}">
								<option value="${eventQueryDto.userName}">${userRealName}</option>
							</c:if>
						</select>
						<input type="submit" class="criteria-btn" value="查询" />
					</div>
				</td>
			</tr>
		</tbody>
	</table>
</form>
<div align="center">
	<%@ include file="/WEB-INF/pages/common/messages.jsp"%>
	<display:table name="list" requestURI="/admin/myland/query" id="item" export="false" sort="external" class="${tableclass}" style="width:100%">
		<display:column title="ID" property="id"></display:column>
		<display:column title="用户名" property="userName"></display:column>
		<display:column title="姓名" property="realName"></display:column>
		<display:column title="类型" property="type"></display:column>
		<display:column title="标题" >
			<c:if test="${not empty item.relateId }">ID为${item.relateId }，</c:if>
			${item.title }
		</display:column>
		<display:column title="时间">
			<fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd hh:mm:ss" />
		</display:column>
	</display:table>
	<ls:page pageSize="${pageSize }" total="${total}" curPageNO="${curPageNO }" type="default" />
</div>
<script language="JavaScript" type="text/javascript">
		  $(document).ready(function() {
				 //三级联动
		     	 $("select.combox").initSelect();
		     	 makeSelect2(contextPath + "/admin/adminUser/userListForMyColleague","#userName","选择用户","value","key");
		  });
        
			
		function pager(curPageNO){
			     document.getElementById("curPageNO").value=curPageNO;
			     document.getElementById("form1").submit();
			 }
			        
	
		</script>
